package main

import (
	"gitee.com/zhengjianfeng/pay/web/routes"
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/middleware/logger"
	"github.com/kataras/iris/v12/middleware/recover"
)

func main() {
	var (
		app *iris.Application
	)

	app = iris.New()

	app.Logger().SetLevel("debug")

	app.Use(recover.New())

	app.Use(logger.New())

	// 注册路由
	routes.Configure(app)

	_ = app.Run(iris.Addr(":8080"))
}
